import request from '@/utils/request'

// AI生成摘要接口
export function aiGenerateSummary(content: string) {
  return request({
    url: '/ai/chat',
    method: 'post',
    data: { content },
    responseType: 'text', // 兼容流式返回
    headers: {
      Accept: 'text/event-stream',
    },
  })
}

// 构建知识库接口
export function buildBlogVectorStore() {
  return request({
    url: '/ai/buildBlogVectorStore',
    method: 'post',
  })
}
